package org.agile4j.rpc.registry.zookeeper;

import org.I0Itec.zkclient.IZkDataListener;

/**
 * 订阅节点的数据内容的变化
 * 
 * @author Administrator
 */
public class ZookeeperDataListener implements IZkDataListener {

	@Override
	public void handleDataChange(String dataPath, Object data) throws Exception {
		System.out.println(dataPath + ":" + data.toString());
	}

	@Override
	public void handleDataDeleted(String dataPath) throws Exception {
		System.out.println(dataPath);
	}

}
